package com.blog.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-23 16:15
 * FileName: Tag
 * Description: 标签实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)    //开启链式写法
public class Tag implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "tag_id")
    private Long tagId;

    private String tagName;

    private Integer count;


    protected Serializable pkVal() {
        return this.tagId;
    }
}
